package net.wanho.shop.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import lombok.Data;
import net.wanho.shop.vo.DetailVo;

/**
 * 订单表
 * @TableName orders
 */
@Data
public class Orders implements Serializable {
    /**
     * 编号
     */
    private Integer id;

    /**
     * 订单号
     */
    private String no;

    /**
     * 用户
     */
    private Integer userId;

    /**
     * 地址
     */
    private Integer addressId;

    /**
     * 总金额
     */
    private BigDecimal total;

    /**
     * 订单状态
     */
    private String status;

    /**
     * 下单时间
     */
    private Date createTime;

    private static final long serialVersionUID = 1L;

    private String userName;

    private String addressName;

    private List<DetailVo> details;
}